﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RonaldCamcam.XBeeFramework.Api;

namespace RonaldCamcam.XBeeApiFramework.AtCommands
{
    public partial class AT
    {        
        public static byte[] GT(GT value, XBeeResponse response)
        {
            return new byte[] { (byte)response, 0x47, 0x54, (byte)value };
        }

        public static byte[] GT()
        {
            return new byte[] { (byte)XBeeResponse.Needed, 0x47, 0x54 };
        }

        ////Not Tested as of 3/19/2011
        ////public static byte[] ND(byte[] value, ModuleResponse response)
        ////{
        ////    List<byte> data = new List<byte>();
        ////    data.Add((byte)response);
        ////    data.Add(0x4E);
        ////    data.Add(0x44);

        ////    foreach (byte b in value)
        ////    {
        ////        data.Add(b);
        ////    }

        ////    return data.ToArray();
        ////}

        ////public static byte[] ND()
        ////{
        ////    return new byte[] { (byte)ModuleResponse.Needed, 0x4E, 0x44 };
        ////}
    }
}
